// import { stringify } from 'qs';
import request from '@/utils/request';

export async function login(params) {
  return request('/api/us/user/login', {
    method: 'POST',
    body: params,
  });
}

export async function logout(params) {
  return request('/api/us/user/logout', {
    method: 'POST',
    body: params,
  });
}

export async function getByToken(token) {
  return request(`/api/us/user/info/${token}`, {
    method: 'GET',
  });
}